//
//  JGValidateCodeApi.m
//  JGRider
//
//  Created by 单启志 on 2018/3/6.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "JGValidateCodeApi.h"

@implementation JGValidateCodeApi

-(NSString *)requestUrl{
    
    return @"api/common/mobile.do?action=sendMoblieCode";
}

-(id)jsonValidator{

    return @{
             @"code":[NSString class],
             @"data":@{
                     @"state":[NSString class],
                     @"msg":[NSString class],
                     @"obj":@{
                             @"active_time":[NSNumber class],
                             @"mobileCode":[NSString class]
                             }
                     },
             @"message":[NSString class]
             };
}


- (NSString *)validateCode{
    return self.responseObject[@"data"][@"obj"][@"mobileCode"];
}



@end
